package com.google.android.apps.skipbot;

import android.content.Context;
import android.widget.Toast;

public class ToastRobot extends Robot {
  static final String TAG = "ToastRobot";
  private final Context context;

  public ToastRobot(Context context, RobotController robotController, RobotConfig robotConfig) {
    super(robotController, robotConfig);
    this.context = context;
  }

  @Override
  public void moveForward() {
    SkipperRobot robot = new SkipperRobot(robotController, new SkipperJuniorRobotConfig());
    robot.stand();
    robot.moveForward();
    Toast.makeText(context, "Toastbot: moveForward", Toast.LENGTH_SHORT).show();
  }

  @Override
  public void stand() {
    Toast.makeText(context, "Toastbot: stand", Toast.LENGTH_SHORT).show();
  }

  @Override
  public void sit() {
    Toast.makeText(context, "Toastbot: sit", Toast.LENGTH_SHORT).show();
  }

  @Override
  public int getCalibrationAngle(int servoIndex) {
    return 90;
  }
}
